package com.example.springbootmybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.example.springbootmybatisplus.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author zx
 * @since 2021-09-03
 */
@Data
  @EqualsAndHashCode(callSuper = true)
    @TableName("edu_comment")
public class Comment extends BaseEntity {

    private static final long serialVersionUID = 1L;

      /**
     * 课程id
     */
      private Long courseId;

      /**
     * 讲师id
     */
      private Long teacherId;

      /**
     * 会员id
     */
      private Long memberId;

      /**
     * 会员昵称
     */
      private String nickname;

      /**
     * 会员头像
     */
      private String avatar;

      /**
     * 评论内容
     */
      private String content;

      /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
      @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
